@import './styles/iconfont.css';
@import './styles/mmv-tab.less';
@import './styles/mmv.less';
@import './styles/animation.css';

@import './styles/footer.less';

html {
	font-family: 'Microsoft YaHei', '微软雅黑', Helvetica, Arial, sans-serif;
	font-size: 14px;
	box-sizing: border-box;
}

body {
	background: #f0f1f5;
	color: #333;
}


*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	outline: none;
}

* {
	margin: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	outline: none;
	color: #4cc3ff;
}

ul,
li {
	list-style: none;
}

input::placeholder, textarea::placeholder {
    color: #ccc;
}

.home-banner {
	width: 100%;
	height: 234px;
	margin-bottom: 50px;
}

.mmv-qrcode {
	display: flex;
	align-items: center;
	&__title {
		font-size: 16px;
		color: #4cc3ff;
	}
	&__subtitle {
		font-size: 16px;
		margin-top: 8px;
		color: #999;
	}
	&__text {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		flex-direction: column;
		white-space: nowrap;
	}
	&__code {
		width: 100px;
		height: 100px;
		margin-right: 8px;
		position: relative;
		background-color: #f5f5f5;
		flex-shrink: 0;
	}
	&__img {
		height: 100%;
	}
	&.mmv-qrcode-vertical {
		display: block;
		width: 160px;
		.mmv-qrcode__code {
			margin: 0 auto;
		}
		.mmv-qrcode__text {
			text-align: center;
			margin-top: 20px;
		}
	}
}

.mmv-avatar {
	display: inline-block;
	position: relative;
	&__sm {
		width: 32px;
		height: 32px;
	}
	&__img {
		width: 100%;
		height: 100%;
		border-radius: 50%;
		border: 1px solid #ebebeb;
		vertical-align: top;
	}
}

.root-page-container {
	padding: 62px 0;
	background: url(https://bbs.mihoyo.com/ys/_nuxt/img/c0e9f5b.png) no-repeat 0 62px;
	background-size: 100%;
}

// 页头
.header {
	// display: none;
	width: 100%;
	line-height: 62px;
	position: fixed;
	top: 0;
	font-size: 0;
	background: #2d2f33;
	color: #fff;
	z-index: 999;
	user-select: none;
	// 页头容器
	&__inner {
		position: relative;
		width: 1200px;
		margin: 0 auto;
	}
	// 页头logo
	&__logo {
		height: 62px;
		display: inline-block;
		cursor: pointer;
		vertical-align: top;
		img {
			width: 90px;
			vertical-align: middle;
		}
	}
	// 页头标题
	&__title {
		display: inline-block;
		padding-left: 10px;
		margin-left: 10px;
		position: relative;
		font-size: 14px;
		vertical-align: top;
		font-weight: 600;
		width: 180px;
		&::before {
			content: '';
			position: absolute;
			left: 0;
			top: 24px;
			border-left: 1px solid rgba(255, 255, 255, 0.3);
			height: 15px;
		}
	}
	// 页头导航
	&__nav {
		&wrap {
			display: inline-block;
			vertical-align: top;
		}
		&bar {
			line-height: 20px;
			font-size: 0;
		}
		&item {
			display: inline-block;
			padding: 21px 0;
			width: 68px;
			height: 62px;
			text-align: center;
			vertical-align: top;
			color: #fff;
			cursor: pointer;
			position: relative;
			font-size: 14px;
			&.active {
				font-weight: bold;
				font-size: 16px;
				background-color: rgba(255, 255, 255, 0.18);
			}
			&:hover {
				background-color: rgba(255, 255, 255, 0.18);
			}
			&--show {
				display: none;
				position: absolute;
				top: 62px;
				right: 0;
				width: 140px;
				z-index: 9;
				background-color: #fff;
				border-bottom-left-radius: 6px;
				border-bottom-right-radius: 6px;
				overflow: hidden;
				padding: 6px 0;
				box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
				text-align: left;
			}
			&--account {
				display: block;
				width: 160px;
			}
		}
	}
	&__navmore {
		display: block;
		line-height: 44px;
		padding: 0 20px;
		color: #333;
		font-size: 14px;
		font-weight: normal;
		&:hover {
			background-color: #4cc3ff;
			color: #fff;
		}
	}
	.header__logout {
		color: #999;
		border-top: 1px solid #ebebeb;
	}
	// 页头右部容器
	&__right {
		float: right;
		display: flex;
		font-size: 14px;
	}
	// 页头搜索栏
	&__search {
		height: 30px;
		line-height: 30px;
		margin-top: 16px;
		padding: 0 35px 0 15px;
		position: relative;
		border-radius: 15px;
		margin-right: 15px;
		font-size: 14px;
		background-color: rgba(255, 255, 255, 0.22);
		input {
			color: #fff;
			width: 50px;
			height: 30px;
			border: none;
			outline: none;
			background-color: transparent;
			transition: width 300ms ease;
			&.focused {
				width: 80px;
			}
		}
		.mmv-icon {
			position: absolute;
			right: 12px;
			top: 0;
			cursor: pointer;
		}
	}
	// 页头通知
	&__notify {
		padding: 0 20px;
		cursor: pointer;
		display: inline-block;
		vertical-align: top;
		font-size: 14px;
		color: #fff;
		&container {
			position: relative;
			&:hover {
				background-color: rgba(255, 255, 255, 0.18);
			}
		}
		&point {
			height: 14px;
			line-height: 14px;
			border-radius: 8px;
			padding: 0 4px;
			background-color: #ff667f;
			position: absolute;
			left: 52px;
			top: 12px;
			border: 1px solid #fff;
			transform: translateX(-9px);
			box-sizing: content-box;
			font-size: 12px;
			color: #fff;
			&::after {
				content: attr(count-num);
				vertical-align: top;
			}
		}
		&cation {
			color: #666;
			font-size: 14px;
			&--show {
				position: absolute;
				top: 62px;
				right: 0;
				width: 320px;
				z-index: 9;
				background-color: #fff;
				border-bottom-left-radius: 6px;
				border-bottom-right-radius: 6px;
				overflow: hidden;
				box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
				animation: fade-in 0.3s both;
				.mmv-tab {
					border-bottom: 1px solid #ebebeb;
					padding: 0 20px;
					&__item {
						font-size: 14px;
						font-weight: normal;
						padding: 0 2px;
						+ .mmv-tab__item {
							margin-left: 30px;
						}
					}
					&__label {
						position: relative;
						&::after {
							content: none;
							left: 100%;
							top: 7px;
						}
					}
				}
			}
		}
		&cation--show &count {
			&--show {
				position: relative;
				&::after {
					content: attr(count-num);
					vertical-align: top;
					height: 14px;
					line-height: 14px;
					border-radius: 8px;
					padding: 0 4px;
					background-color: #ff667f;
					position: absolute;
					top: 7px;
					border: 1px solid #fff;
					transform: translateX(-9px);
					box-sizing: content-box;
					font-size: 12px;
					color: #fff;
				}
			}
		}
		&list {
			padding: 0 24px;
			height: 344px;
			overflow-y: auto;
			overflow-x: hidden;
		}
		&footer {
			line-height: 50px;
			color: #4cc3ff;
			font-size: 14px;
			padding: 0 20px;
			border-top: 1px solid #ebebeb;
			span {
				cursor: pointer;
			}
			a {
				float: right;
			}
		}
	}
	// 页头头像
	&__avatar {
		height: 36px;
		width: 36px;
		padding: 2px;
		background-color: #fff;
		border-radius: 100%;
		&container {
			cursor: pointer;
		}
		&wrp {
			display: block;
			padding: 13px 20px;
		}
		img {
			width: 100%;
			height: 100%;
			vertical-align: top;
			border-radius: 100%;
		}
	}
}

// 弹出消息列表
.header-notifycation {
	color: #666;
	font-size: 14px;
	&__item {
		border-bottom: 1px solid #f0f0f0;
		line-height: 18px;
		padding: 15px 0;
		position: relative;
		display: flex;
		cursor: pointer;
		&--unread::before {
			content: '';
			width: 6px;
			height: 6px;
			border-radius: 50%;
			background-color: #ffb2bf;
			position: absolute;
			left: -15px;
			top: 30px;
		}

		.mmv-avatar {
			width: 36px;
			height: 36px;
		}
	}
	&__content {
		flex: 1;
		flex-grow: 1;
		overflow: hidden;
		margin-left: 10px;
		line-height: 18px;
	}
	&__time {
		font-size: 12px;
		color: #ccc;
		flex-shrink: 0;
	}
	&__header {
		display: flex;
		align-items: center;
		zoom: 1;
		.header-notifycation__time {
			float: right;
		}
		&::after {
			content: '';
			display: block;
			visibility: hidden;
			height: 0;
			clear: both;
			font-size: 0;
		}
	}
	&-system__header {
		display: block;
	}
	&__title {
		color: #666;
		flex-grow: 1;
	}
	&__name {
		max-width: 115px;
		color: #666;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	&__subtitle {
		color: #ccc;
		margin-left: 10px;
		font-size: 12px;
	}
	&__text {
		font-size: 12px;
		color: #333;
		pre {
			white-space: pre-wrap;
			word-wrap: break-word;
			word-break: break-word;
			line-height: 1.5;
		}
	}
	&__systext {
		line-height: 18px;
		word-wrap: break-word;
		word-break: break-word;
	}
}

.mmv-account-title {
	display: inline-block;
	font-size: 0;
	line-height: 20px;
	vertical-align: top;
	&__name {
		color: #666;
		max-width: 180px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	> * {
		font-size: 14px;
		display: inline-block;
		vertical-align: middle;
	}
	&:hover .mmv-account-title__name {
		color: #00c3ff;
	}
}
